package Test;

import static org.junit.Assert.fail;
import org.junit.Before;
import org.junit.Test;

import DBLayer.DBConnection;

public class DbConnectionTest
{
	private DBConnection dbConObj;
	@Before
	public void setUp() throws Exception
	{
		dbConObj = DBConnection.getInstance();
	}

	@Test
	public void testGetDBcon()
	{
		if(dbConObj != null)
		{
			System.out.println("OK");
		}
		else
		{
			fail("Ingen forbindelse");
		}
	}

}
